package com.netty.bfport.http.service;

import com.github.pagehelper.PageInfo;
import com.netty.bfport.http.domain.dto.HealthyHistoryDTO;
import com.netty.bfport.http.domain.dto.TUserDTO;

import java.io.IOException;
import java.util.Date;
import java.util.List;

/**
 * @Author: zhaoyang05
 * @Data: 2022/3/23 13:19
 * @Description
 */
public interface PersonInfoService {

    /**
     * 用户列表查询
     *
     * @return*/
    PageInfo<TUserDTO> userList(String name, String telephone,Integer page,Integer size);

    /**
     * 用户添加
     * */
    int userAdd(TUserDTO tUserDTO);


    /**
     * 修改用户个人信息
     * */
    int userUp(TUserDTO tUserDTO);

    /**
     * 获取用户健康历史信息
     * */
    List<HealthyHistoryDTO> healthyList(String userId, Date time) throws IOException;
}
